<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/success.png">
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>
<div class="flat_area grid_16">
    <h2>Report Reward Qualified AM Warehouse </h2>
</div>

<div class="search-form">
<div class="form">

</div>
</div>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    //'id'=>'sys-ewallet-withdrawal-grid',
    'dataProvider'=>$dataProvider,
    //'filter'=>$model,
    'columns' => array(
//        array('header' => '#',
//              'type' => 'raw',
//              'value' => 'CHtml::checkBox("withdraw[]", false, array("value" => $data["board_id"]));',
//              'htmlOptions' => array('style' => 'text-align:center;')),
        array('header' => 'No.',
              'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)."."',
              'htmlOptions' => array('style' => 'text-align:center;'),
            ),
        array(
	      'header'=>'ID Member',	
	      'name'=>'network_mid',
              'value' => '$data["network_mid"]',
              'htmlOptions' => array('style' => 'text-align:center;'),
            ),
        array('header' => 'Nama',
               'name'=>'member_name',
               'value' => '$data["member_name"]',
              'htmlOptions' => array('style' => 'text-align:center;'),
            ),
        array('header' => 'Titik Kiri',
               'name'=>'reward_node_left',
	      'value' => '$data["reward_node_left"]',
              'htmlOptions' => array('style' => 'text-align:center;'),
            ),
        array('header' => 'Titik Kanan',
               'name'=>'reward_node_right',
	      'value' => '$data["reward_node_right"]',
              'htmlOptions' => array('style' => 'text-align:center;'),
            ),
        array(
            'header' => 'Download',
            'class' => 'CButtonColumn',
            'template' => '{report}',
            'buttons' => array(
                'report' => array(
                    'label' => 'Report',
                    'imageUrl' => Yii::app()->request->baseUrl . '/images/icon/adm_detail_navy.png',
                    'url' => 'Yii::app()->createUrl("admin/report/reward_qualified/listamwarehouse", array("id" => sys_network::Model()->FindByPk($data["network_id"])->network_mid))',
                    
                ),
            ),
        ),
        ),
    'pager' => array(
        'cssFile' => Yii::app()->params['backendUrl'] . '/css/style-pager.css',
        'header' => '',
        'firstPageLabel' => 'First',
        'prevPageLabel' => 'Previous',
        'nextPageLabel' => 'Next',
        'lastPageLabel' => 'Last',
    ),
   // 'selectableRows' => 2,
   // 'selectionChanged' => 'userClicks',
    'cssFile' => Yii::app()->params['backendUrl'] . '/css/style-gridview.css',
));
?>
<!--<div style="border-top:1px solid silver; border-bottom:1px solid silver; background: #EEEEEE; padding:10px;">
<?php
$xls_icon=Yii::app()->baseUrl.'/images/report_icon/excel.png';
echo CHtml::form('', 'POST');
echo CHtml::imageButton($xls_icon,array('alt'=>'Excel','title'=>'Download in Excel','name'=>'button[xls]','value'=>'xls'));
echo CHtml::endForm();
?>
</div>-->

